import hasRole from './permission/hasRole'
import hasPermi from './permission/hasPermi'
import clipboard from './clipboard'

const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPermi', hasPermi)
  Vue.directive('clipboard', clipboard)  //代码复制器
}

if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPermi'] = hasPermi
  Vue.use(install); // eslint-disable-line  自定义 指令
}

export default install
